package cn.fch.gotrip.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: gotrip
 * @description:
 * @CreatedBy: fch
 * @create: 2023-01-25 17:37
 **/
@Data
public class HotelOrder {
    private String id;
    private Hotel hotel;
    private Room room;
    private User user;
    private Type type;
    private BigDecimal price;
    @JSONField(format = "yyyy-MM-dd hh:mm:ss")
    private Date creatTime;
    @JSONField(format = "yyyy-MM-dd")
    private Date inDate;
    private Integer days;

    @Data
    public static class Type {
        private Integer id;
        private String name;

        public Type(Integer id) {
            this.id = id;
        }

        public Type() {
        }
    }
}
